package org.dingyom.gift.clients;

import org.dingyom.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "GIFT-USER",fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {
    @GetMapping("/user/loginUser/{loginId}")
    public AjaxResult getByLoginId(@PathVariable("loginId") Long loginId);
}
